﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace JNPF.Basics.Models
{
    /// <summary>
    /// 企业号用户
    /// 版 本：V3.0.0
    /// 版 权：引迈信息技术有限公司（https://www.jnpfsoft.com）
    /// 作 者：JNPF开发平台组
    /// 日 期：2018-08-14
    /// </summary>
    [Table("WECHAT_QYUSER")]
    public class QYUserEntity
    {
        /// <summary>
        /// 自然主键
        /// </summary>
        [Key]
        [Column("F_ID")]
        public string Id { get; set; }
        /// <summary>
        /// 账户
        /// </summary>
        [Column("F_ACCOUNT")]
        public string Account { get; set; }
        /// <summary>
        /// 呢称
        /// </summary>
        [Column("F_NICKNAME")]
        public string NickName { get; set; }
        /// <summary>
        /// 头像
        /// </summary>
        [Column("F_HEADICON")]
        public string HeadIcon { get; set; }
        /// <summary>
        /// 性别
        /// </summary>
        [Column("F_GENDER")]
        public int? Gender { get; set; }
        /// <summary>
        /// 生日
        /// </summary>
        [Column("F_BIRTHDAY")]
        public DateTime? Birthday { get; set; }
        /// <summary>
        /// 手机
        /// </summary>
        [Column("F_MOBILEPHONE")]
        public string MobilePhone { get; set; }
        /// <summary>
        /// 电话
        /// </summary>
        [Column("F_TELEPHONE")]
        public string TelePhone { get; set; }
        /// <summary>
        /// Landline
        /// </summary>
        [Column("F_LANDLINE")]
        public string Landline { get; set; }
        /// <summary>
        /// 邮箱
        /// </summary>
        [Column("F_EMAIL")]
        public string Email { get; set; }
        /// <summary>
        /// 民族
        /// </summary>
        [Column("F_NATION")]
        public string Nation { get; set; }
        /// <summary>
        /// 籍贯
        /// </summary>
        [Column("F_NATIVEPLACE")]
        public string NativePlace { get; set; }
        /// <summary>
        /// 入职日期
        /// </summary>
        [Column("F_ENTRYDATE")]
        public DateTime? EntryDate { get; set; }
        /// <summary>
        /// 证件类型
        /// </summary>
        [Column("F_CERTIFICATESTYPE")]
        public string CertificatesType { get; set; }
        /// <summary>
        /// 证件号码
        /// </summary>
        [Column("F_CERTIFICATESNUMBER")]
        public string CertificatesNumber { get; set; }
        /// <summary>
        /// 文化程度
        /// </summary>
        [Column("F_EDUCATION")]
        public string Education { get; set; }
        /// <summary>
        /// UrgentContacts
        /// </summary>
        [Column("F_URGENTCONTACTS")]
        public string UrgentContacts { get; set; }
        /// <summary>
        /// 紧急电话
        /// </summary>
        [Column("F_URGENTTELEPHONE")]
        public string UrgentTelePhone { get; set; }
        /// <summary>
        /// 通讯地址
        /// </summary>
        [Column("F_POSTALADDRESS")]
        public string PostalAddress { get; set; }
        /// <summary>
        /// 自我介绍
        /// </summary>
        [Column("F_SIGNATURE")]
        public string Signature { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        [Column("F_PASSWORD")]
        public string Password { get; set; }
        /// <summary>
        /// 秘钥
        /// </summary>
        [Column("F_SECRETKEY")]
        public string Secretkey { get; set; }
        /// <summary>
        /// 首次登录时间
        /// </summary>
        [Column("F_FIRSTLOGTIME")]
        public DateTime? FirstLogTime { get; set; }
        /// <summary>
        /// 首次登录IP
        /// </summary>
        [Column("F_FIRSTLOGIP")]
        public string FirstLogIP { get; set; }
        /// <summary>
        /// 前次登录时间
        /// </summary>
        [Column("F_PREVLOGTIME")]
        public DateTime? PrevLogTime { get; set; }
        /// <summary>
        /// 前次登录IP
        /// </summary>
        [Column("F_PREVLOGIP")]
        public string PrevLogIP { get; set; }
        /// <summary>
        /// 最后登录时间
        /// </summary>
        [Column("F_LASTLOGTIME")]
        public DateTime? LastLogTime { get; set; }
        /// <summary>
        /// 最后登录IP
        /// </summary>
        [Column("F_LASTLOGIP")]
        public string LastLogIP { get; set; }
        /// <summary>
        /// 登录成功次数
        /// </summary>
        [Column("F_LOGSUCCESSCOUNT")]
        public int? LogSuccessCount { get; set; }
        /// <summary>
        /// 登录错误次数
        /// </summary>
        [Column("F_LOGERRORCOUNT")]
        public int? LogErrorCount { get; set; }
        /// <summary>
        /// 最后修改密码时间
        /// </summary>
        [Column("F_CHANGEPASSWORDDATE")]
        public DateTime? ChangePasswordDate { get; set; }
        /// <summary>
        /// 系统语言
        /// </summary>
        [Column("F_LANGUAGE")]
        public string Language { get; set; }
        /// <summary>
        /// 系统样式
        /// </summary>
        [Column("F_THEME")]
        public string Theme { get; set; }
        /// <summary>
        /// 常用菜单
        /// </summary>
        [Column("F_COMMONMENU")]
        public string CommonMenu { get; set; }
        /// <summary>
        /// 是否管理员
        /// </summary>
        [Column("F_ISADMINISTRATOR")]
        public int? IsAdministrator { get; set; }
        /// <summary>
        /// 扩展属性
        /// </summary>
        [Column("F_PROPERTYJSON")]
        public string PropertyJson { get; set; }
        /// <summary>
        /// 排序码
        /// </summary>
        [Column("F_SORTCODE")]
        public long? SortCode { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        [Column("F_CREATORTIME")]
        public DateTime? CreatorTime { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        [Column("F_LASTMODIFYTIME")]
        public DateTime? LastModifyTime { get; set; }
        /// <summary>
        /// 删除标志
        /// </summary>
        [Column("F_DELETEMARK")]
        public int? DeleteMark { get; set; }
        /// <summary>
        /// 主管主键
        /// </summary>
        [Column("F_MANAGERID")]
        public string ManagerId { get; set; }
        /// <summary>
        /// 组织主键
        /// </summary>
        [Column("F_ORGANIZEID")]
        public string OrganizeId { get; set; }
        /// <summary>
        /// 岗位主键
        /// </summary>
        [Column("F_POSITIONID")]
        public string PositionId { get; set; }
        /// <summary>
        /// 角色主键
        /// </summary>
        [Column("F_ROLEID")]
        public string RoleId { get; set; }
        /// <summary>
        /// 用户主键
        /// </summary>
        [Column("F_USERID")]
        public string UserId { get; set; }
        /// <summary>
        /// 用户姓名
        /// </summary>
        [Column("F_REALNAME")]
        public string RealName { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [Column("F_DESCRIPTION")]
        public string Description { get; set; }
        /// <summary>
        /// 有效标志
        /// </summary>
        [Column("F_ENABLEDMARK")]
        public int? EnabledMark { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        [Column("F_CREATETIME")]
        public DateTime? CreateTime { get; set; }
        /// <summary>
        /// 创建用户
        /// </summary>
        [Column("F_CREATORUSERID")]
        public string CreatorUserId { get; set; }
        /// <summary>
        /// 编辑用户
        /// </summary>
        [Column("F_LASTMODIFYUSERID")]
        public string LastModifyUserId { get; set; }
        /// <summary>
        /// 删除日期
        /// </summary>
        [Column("F_DELETETIME")]
        public DateTime? DeleteTime { get; set; }
        /// <summary>
        /// 删除用户
        /// </summary>
        [Column("F_DELETEUSERID")]
        public string DeleteUserId { get; set; }
        /// <summary>
        /// 同步状态
        /// </summary>
        [Column("F_SYNCSTATE")]
        public int? SyncState { get; set; }
    }
}